package io.seata.samples.tcc.springboot.springcloud.feign;

import io.seata.samples.tcc.springboot.springcloud.feign.bean.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("action-db-provider")
public interface ActionDbFeign {

    @PostMapping("/user/save")
    public User save(@RequestBody User user);

}
